/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

import java.sql.Timestamp;

/**
 *
 * @author Messi
 */
public class DonDatHangPOJO {

    private int maDonDatHang;
    private Timestamp ngayDatHang;
    private int maNguoiDung;
    private int maTinhTrang;

    public int getMaDonDatHang() {
        return maDonDatHang;
    }

    public void setMaDonDatHang(int maDonDatHang) {
        this.maDonDatHang = maDonDatHang;
    }

    public int getMaNguoiDung() {
        return maNguoiDung;
    }

    public void setMaNguoiDung(int maNguoiDung) {
        this.maNguoiDung = maNguoiDung;
    }

    public int getMaTinhTrang() {
        return maTinhTrang;
    }

    public void setMaTinhTrang(int maTinhTrang) {
        this.maTinhTrang = maTinhTrang;
    }

    public Timestamp getNgayDatHang() {
        return ngayDatHang;
    }

    public void setNgayDatHang(Timestamp ngayDatHang) {
        this.ngayDatHang = ngayDatHang;
    }

    public DonDatHangPOJO(int maDonDatHang, Timestamp ngayDatHang, int maNguoiDung, int maTinhTrang) {
        this.maDonDatHang = maDonDatHang;
        this.ngayDatHang = ngayDatHang;
        this.maNguoiDung = maNguoiDung;
        this.maTinhTrang = maTinhTrang;
    }

    public DonDatHangPOJO(DonDatHangPOJO dth) {
        this.maDonDatHang = dth.maDonDatHang;
        this.ngayDatHang = dth.ngayDatHang;
        this.maNguoiDung = dth.maNguoiDung;
        this.maTinhTrang = dth.maTinhTrang;
    }

    public DonDatHangPOJO() {
        this.maDonDatHang = 0;
        this.ngayDatHang = null;
        this.maNguoiDung = 0;
        this.maTinhTrang = 1;
    }
}
